<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
  String xm = this.getServletContext().getInitParameter("path");
	String path1 = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/"+xm;
%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> 
<html>
<head>

<title>显示付款方式</title>

<link href="<%=path1%>/qt/css/css.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="js/ie6png.js" ></script>
<script type="text/javascript">
DD_belatedPNG.fix('div,ul,li,a,p,img,body,dl,dt,dd');</script>
<script type="text/javascript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
</script>

<script>
/*第一种形式 第二种形式 更换显示样式*/
function setTab(name,cursel,n){
    for(i=1;i<=n;i++){
    var menu=document.getElementById(name+i);
    var con=document.getElementById("con_"+name+"_"+i);
    menu.className=i==cursel?"hover":"";
    con.style.display=i==cursel?"block":"none";
   }
}
</script>

<script type="text/javascript">

    function deleteCheck(){	
    	var check= document.getElementsByName("checkbox1");
    	var bool = false;
    	for(var i=0;i<check.length;i++){
    		if(check[i].checked){
    			bool=true;
    			alert(check[i].value);
    			window.location.href="<%=path1%>/ht/pay_type/deletePay_Type.do?pay_type_id="+check[i].value;
    		}
    	}
    	if(bool==false || bool==null){
    		alert("请选择要删除的内容")
    	}	
    }
</script>

<script type="text/javascript">
function updateCheck(){
	 var check =  document.getElementsByName("checkbox1");
	 var bool= false;
	 for(var i=0;i<check.length;i++){
		 if(check[i].checked){
	     bool= true;
		 alert(check[i].value);
		 window.location="<%=path1%>/ht/pay_type/selectById.do?id="+check[i].value;
	     } 
    }
	 if(bool==false || bool ==null){
		 alert("请选择要修改的记录");
	 }
}
</script>

<script type="text/javascript">
    function checks(){	
    	var check= document.getElementsByName("checkbox1");
    	var bool = false;
    	for(var i=0;i<check.length;i++){
    		if(check[i].checked){
    			bool=true;
    			alert(check[i].value);
    			window.location.href="<%=path1%>/ht/report/updates?payid="+check[i].value;
    		}
    	}
    	if(bool==false || bool==null){
    		alert("请选择要支付的方式")
    	}	
    }
</script>

</head>
<body>
<div class="yboxwidth boxcenter ybox01">
  <div class="ybox09">
 
  </div>
  <div class="ybox02">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="margb4">
      <tr>
        <td class="ybox03td1"></td>
        <td class="ybox03td2"></td>
        <td class="ybox03td3"></td>
      </tr>
      <tr>
        <td class="ybox03td4"></td>
        <td class="ybox03td5"><div class="ybox05 margb8">
          <dl>
            <!-- <dt> <strong>【注】</strong>只能包含未开过盘的房间，系统将自动过滤。 </dt> -->
          </dl>
        </div>
          <div class="ybox07 margb2">
            <div class="ybox09">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td class="ybox10td1"><a href="#"><img
							src="<%=path1%>/qt/images/op8_1.gif" width="28" height="54" /></a></td>
        <td><table border="0" cellspacing="0" cellpadding="0">
          <tr valign="top">
            <td class="ybox11td1"></td>
            <td class="ybox11td2"><a href="<%=path1%>/qt/addOpening_Report.jsp">1、填写基本信息</a></td>
            <td class="ybox11td3"></td>
            <td class="ybox11td2"><a href="javascript:window.history.go(-3)">2、选择房间</a></td>
            <td class="ybox11td3"></td>
            <td class="ybox11td2"><a href="javascript:window.history.go(-2)">3、导入价格</a></td>
            <td class="ybox11td3"></td>
            <td class="ybox11td2"><a href="javascript:window.history.go(-1)">4、引入折扣方案</a></td>
            <td class="ybox11td8"></td>
            <td class="ybox11td6"><a href="#">5、引入付款方式</a></td>
            <td class="ybox11td7"></td>
            <td class="ybox11td2"><a href="<%=path1%>/qt/yuLan.jsp">6、预览并提交</a></td>
            <td class="ybox11td4"></td>
          </tr>
        </table></td>
					<td class="ybox10td1"><a href="#"><img
							src="<%=path1%>/qt/images/op8_2.gif" width="28" height="54" /></a></td>
				</tr>
			</table>
		</div>
		</div>
<!--支付的controller里的select方法  -->
        <form id="form1" action="select" method="post">
          <table width="100%" border="0" cellpadding="0" cellspacing="1" class="ybox06table">
                <tr>
                  <td class="ybox06td01"><input type="checkbox" name="checkbox" id="checkbox" /></td>
                  <td width="10" class="ybox06td01">序号</td>
                  <td class="ybox06td01">付款方式名称</td>
                   <td class="ybox06td01">适用范围</td>
                </tr>
                <c:forEach items="${pay_type}" var="b" varStatus="s">
                 <tr>
          
                  <td class="ybox06td02wcenter"><input type="checkbox" name="checkbox1"
                  id="checkbox1" value="${b.pay_type_id}"   /></td>
                  <td class="ybox06td02wcenter">${s.count}</td>
                  <td class="ybox06td02wleft">${b.pay_type_name}</td>
                   <td class="ybox06td02wleft">${b.apply_scope }</td>
                </tr>
                </c:forEach>
              </table>
              </form>
          <div class="nums boxcenter black12"><a href="#" class="hovera">首 页</a><a href="#">上一页</a><a href="#">下一页</a><a href="#">尾 页</a>&nbsp;&nbsp;&nbsp;第1/3页&nbsp;&nbsp;&nbsp;每页&nbsp;
            <input name="textfield3" type="text" id="textfield" size="2"/>
  &nbsp;条/共25条&nbsp;&nbsp;转到&nbsp;
  <input name="textfield3" type="text" id="textfield" size="2"/>
  &nbsp;页<a href="#">跳 转</a></div></td>
        <td class="ybox03td6"></td>
      </tr>
      <tr>
        <td class="ybox03td7"></td>
        <td class="ybox03td8"></td>
        <td class="ybox03td9"></td>
      </tr>
    </table>
    <table width="380" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="60" align="center"><a href="javascript:window.history.go(-1);"><img src="<%=path1%>/ht/Images/botton01.gif" width="95" height="34" /></a></td>
        <td align="center"><a onclick="checks();"><img src="<%=path1%>/ht/Images/botton02.gif" width="95" height="34" /></a></td>
      </tr>
    </table>
  </div>
</div>
</body>
</html>